Provisioning framework for binding related cloud services

ABSTRACT

Techniques are described for binding secondary services with a cloud service instance. In one or more embodiments, a service definition defines a set of secondary services that are compatible with a primary service. In response to receiving a request to perform a provisioning operation for the instance of the primary service, a provisioning engine identifies, from the set of secondary services that are compatible with the primary service, a subset of one or more secondary services that are available. The provisioning engine binds the subset of one or more secondary services to the primary service to generate a deployment configuration for the instance of the primary service. Based on the deployment configuration, the provisioning engine provisions a set of components for the instance of the primary service.

INCORPORATION BY REFERENCE; DISCLAIMER

Each of the following applications are hereby incorporated by reference:application Ser. No. 15/498,294 filed on Apr. 26, 2017; application Ser.No. 15/498,184 filed on Apr. 26, 2017. The Applicant hereby rescinds anydisclaimer of claim scope in the parent application(s) or theprosecution history thereof and advises the USPTO that the claims inthis application may be broader than any claim in the parentapplication(s).

TECHNICAL FIELD

The present disclosure relates, generally, to cloud computingenvironments. In particular, the present disclosure relates toperforming provisioning operations for instances of a cloud service.

BACKGROUND

Cloud computing involves the use of hardware and software resources toprovide services over a network. In many cloud computing models, theresponsibility of providing and maintaining the hardware and softwareinfrastructure falls on the cloud service provider. By shifting theseresponsibilities to the cloud service provider, organizations and otherconsumers may quickly access complex systems and applications withoutincurring the upfront costs of acquiring the supporting infrastructure.Another benefit of cloud computing is that resources may be shared bymultiple tenants, which improves scalability and reduces the costs ofthe underlying infrastructure.

Cloud provisioning refers to the allocation of cloud computing resourcesto tenants. Cloud service providers may perform provisioning operationsto allocate resources for new tenants of a cloud service, reallocateresources for current tenants, and/or deallocate resources for previoustenants. Cloud resources may be allocated/deallocated in real-time tosupport tenant requests on an as-needed basis and/or may be allocatedbased on a pre-defined amount prior to a tenant accessing a cloudservice.

Cloud provisioning operations are often defined through complex programswritten by cloud administrators. Creating provisioning applications maybe a difficult and error-prone process. Inefficient provisioning mayhave significant consequences to the tenant and/or providers of a cloudservice. For example, allocating too few resources to a tenant may leadto resource overload, causing performance degradation. Conversely,allocating too many resources may lead to waste, decreasing the numberof tenants that are able to share a resource and increasing costs.

The approaches described in this section are approaches that could bepursued, but not necessarily approaches that have been previouslyconceived or pursued. Therefore, unless otherwise indicated, it shouldnot be assumed that any of the approaches described in this sectionqualify as prior art merely by virtue of their inclusion in thissection.

BRIEF DESCRIPTION OF THE DRAWINGS

The embodiments are illustrated by way of example and not by way oflimitation in the figures of the accompanying drawings. It should benoted that references to “an” or “one” embodiment in this disclosure arenot necessarily to the same embodiment, and they mean at least one. Inthe drawings:

FIG. 1 illustrates a system including a provisioning framework for cloudservices in accordance with one or more embodiments;

FIG. 2 illustrates an example set of operations for generating a cloudservice schematic in accordance with one or more embodiments;

FIG. 3 illustrates an example cloud service schematic template inaccordance with one or more embodiments;

FIG. 4 illustrates an example set of operations for compiling a cloudservice schematic in accordance with one or more embodiments;

FIG. 5 illustrates an example output of a cloud service schematiccompiler in accordance with one or more embodiments;

FIG. 6 illustrates an example set of operations for performing cloudprovisioning in accordance with one or more embodiments;

FIG. 7 illustrates an example implementation of a provisioning engine inaccordance with one or more embodiments;

FIG. 8 illustrates an example set of operations for binding secondaryservices to a primary cloud service in accordance with one or moreembodiments;

FIG. 9 illustrates an example service topology with a secondary servicebinding to a primary cloud service in accordance with one or moreembodiments; and

FIG. 10 illustrates an example computer system upon which one or moreembodiments may be implemented.

DETAILED DESCRIPTION

In the following description, for the purposes of explanation, numerousspecific details are set forth in order to provide a thoroughunderstanding. One or more embodiments may be practiced without thesespecific details. Features described in one embodiment may be combinedwith features described in a different embodiment. In some examples,well-known structures and devices are described with reference to ablock diagram form in order to avoid unnecessarily obscuring the presentinvention.

-   -   1. GENERAL OVERVIEW    -   2. ARCHITECTURAL OVERVIEW    -   3. SERVICE SCHEMATIC DEFINITIONS    -   4. SERVICE SCHEMATIC COMPILATION    -   5. VERSION AGGREGATION    -   6. SCHEMATIC-BASED PROVISIONING    -   7. SECONDARY SERVICE BINDING    -   8. SERVICE SIMULATION    -   9. HARDWARE OVERVIEW    -   10. MISCELLANEOUS; EXTENSIONS

1. General Overview

Many cloud services rely on the ability to rapidly provision cloudresources. However, provisioning operations may be complicated both byfrequent changes to the cloud service offering and/or the underlyingcloud infrastructure used to support the cloud service offering. Forexample, a cloud provider may change security policies, storagesolutions, or otherwise modify the components associated with a cloudservice. Additionally or alternatively, a cloud provider may adjust theamount of storage, available bandwidth, or other terms of service pertenant. Adding to the complexity, new hardware and software componentsmay be frequently added to and/or removed from the cloud environment.

One approach to implementing cloud provisioning is to hardcode a set ofoperations that allocate or deallocate resources within the cloudenvironment. Hardcoding is a direct approach to implementingprovisioning operations within the cloud environment. However, thisapproach lacks flexibility to quickly accommodate changes to a cloudservice offering. If a cloud service is upgraded or otherwise modified(e.g., by updating components associated with the cloud service), then acloud administrator may be required to update the underlying source codefor each provisioning operation. As previously indicated, this processmay be cumbersome and prone to error. In addition, the cloudadministrator updating the service may not have the technical know-howto make the corresponding changes to the hardcoded operations.

Hardcoding also reduces the portability of a provisioning framework.With hardcoded operations, cloud administrators may not be able todirectly run a cloud a provisioning flow in a new environment unless thenew environment closely matches the native cloud environment in whichthe cloud provisioning operations were developed. Thus, portinginstances of a cloud service to new environments may require updates tothe underlying source code for each provisioning operation to accountfor differences in the new environment.

Techniques described herein provide a provisioning framework throughwhich cloud services may be flexibly defined, updated, and deployed. Inone or more embodiments, the provisioning framework defines cloudservices using service schematics. A service schematic represents ablueprint for one or more versions of a cloud service. A serviceschematic may define a cloud service in a manner that is decoupled fromenvironment-specific parameters, which may vary between different cloudenvironments. For example, operating systems, storage servers, and/orother cloud resources may vary between different environments on whichdifferent instances of the cloud service may be deployed. The sameservice schematic may be portable despite the differences and may beused to provision instances of a cloud service in differentenvironments.

While a cloud service may be implemented in a variety of differentenvironments, a cloud service may depend on the availability of certaincloud resources. For example, a cloud service may rely on certainapplications, web services, and/or other components to satisfy anexpected type and/or quality of service. In one or more embodiments,resource dependencies are captured by service schematics. Duringprovisioning, resources are allocated based, in part on the resourcedependencies defined in the service schematic. If the schematicindicates that the cloud resource is dependent on a particularapplication, for instance, then an instance of the application may beassigned to a particular tenant to handle incoming requests.Additionally or alternatively, other types of resources may beprovisioned for an instance of the cloud service in accordance with theservice schematic.

In one or more embodiments, a service schematic defines associations forone or more versions of a cloud service. An association in this contextrefers to a relationship between the cloud service that is the subjectof the service blueprint (herein referred to as the “primary service”)and another cloud service (herein referred to as a “secondary service”).The service schematic may associate the primary cloud service with oneor more secondary services. For example, a platform as a service (PaaS)may be compatible with other cloud services, including, but not limitedto, software as a service (SaaS), middleware as a service (MWaaS),and/or database as a service (DBaaS) instances. During provisioning,resources may be allocated based on the availability of the secondaryservices. If a secondary service is available, then a provisioningengine may bind the secondary service to the primary service such thatthe secondary service is integrated into an instance of the primaryservice. If the secondary service is unavailable (e.g., the tenant hasnot subscribed or otherwise does not have access to the secondaryservice), then the provisioning engine may proceed without binding thesecondary service. In some cases, the provisioning engine may allocate adefault set of components in place of the secondary service ifunavailable. In other cases, the provisioning engine may proceed withprovisioning an instance of the primary service without allocating anyadditional resources in place of the secondary service.

Service schematics may define multiple versions of a cloud service. Forexample, a service schematic may define a base version of a cloudservice that includes a base set of resource dependencies and/orassociations. The service schematic may further define additionalversions (herein referred to as “derived versions”) of the service withdifferent resource dependencies and/or associations. A derived versionmay (a) add, (b) replace, and/or (c) otherwise modify resourcedependencies and/or associations of other versions of the cloud service,including the base version and other derived versions.

In one or more embodiments, derived versions of a cloud service aredefined as a function of the base version and/or one or more otherderived versions. As previously mentioned, a derived version of thecloud service may add to, replace, or otherwise modify other versions ofa cloud service. A provisioning engine may aggregate the modificationsbased on the version of the service for which resources are beingallocated. For instance, a service schematic may define a base versionof a cloud service that includes a base set of resource dependencies, afirst derived version that modifies the base set of resourcedependencies, and a second derived version that modifies the precedingderived versions set of resource dependencies. To provision an instanceof the first derived version of the cloud service, a provisioning enginemay determine a target set of resource dependencies based on the changesmade to the base set of resource dependencies by the first derivedversion of the cloud service. To provision an instance of the secondderived version of the cloud service, the provisioning engine maydetermine a target set of resource dependencies by aggregating thechanges made by the first and second derived versions of the cloudservice. If the service schematic defines other version of the cloudservice, the provisioning engine may similarly determine how to allocateresources as a function of all preceding versions of the cloud service.This structure allows cloud administrators to define updatesincrementally within a service schematic without having to redefine theentire cloud service each time a new version is released or a change ismade.

In one or more embodiments, the provisioning framework includes aservice schematic compiler. Once a service schematic for a cloud servicehas been defined, the service schematic compiler translates theschematic into a set of instructions for provisioning an instance of thecloud service. The set of instructions may include, but are not limitedto, CRUD instructions for creating, reading, updating, and deletingconfiguration data to allocate resources to a tenant. CRUD instructionsmay be run in different cloud environment that support the resourcedependencies defined in the service schematic. In the event the serviceschematic is updated (e.g., to add a new version of the cloud service),the service schematic may be recompiled to update the set ofprovisioning instructions. The service schematic compiler allows cloudadministrators to define and change cloud services without having toperform difficult coding/recoding of provisioning operations indifferent development environments.

2. Architectural Overview

In one or more embodiments, a provisioning framework comprises logic forallocating resources within a cloud environment. A “cloud environment”or “cloud service platform”, as used herein, may include, but is notlimited to a set of deployed hardware and/or software resources used toprovide a software-as-a-service (SaaS), a database-as-a-service (DBaaS),a platform-as-a-service (PaaS), an infrastructure as a service (IaaS),or any other cloud computing service for one or more tenants. The term“logic” as used herein includes computer or electrical hardwarecomponent(s), firmware, a non-transitory computer readable medium thatstores instructions, and/or combinations of these components configuredto perform one or more functions or actions, and/or to cause one or morefunctions or actions from another logic, method, and/or system. Logicmay include a microprocessor controlled by executable code, a discreetlogic (e.g., ASIC), an analog circuit, a digital circuit, a programmedlogic device, a memory device containing instructions that when executedperform an algorithm, and so on. Logic may include one or more gates,combinations of gates, or other circuit components. Where multiple logicunits are described, it may be possible to incorporate the multiplelogic units into one physical logic component Similarly, where a singlelogic unit is described, it may be possible to distribute the singlelogic unit between multiple physical logic components.

In one or more embodiments, the cloud environment comprises amulti-tenant architecture where tenants share hardware resources and/orsoftware resources. For example, a multi-tenant instance of an PaaS mayallow hundreds or thousands of tenants to develop and manageapplications in the cloud sharing the same cloud infrastructure. Asanother example, a multi-tenant DBaaS may allow multiple tenants toshare an instance of a database application, a database schema, and/oranother database resource. Similarly, the SaaS layer may supportmultiple tenants using a single instance of a software application. Insome cases, a multi-tenant architecture may provide shared resources atone layer but not at another layer. For example, a cloud serviceplatform may provide a multi-tenant PaaS, but only a single tenantDBaaS. As another example, the cloud service platform may provide amulti-tenant DBaaS, but only a single tenant SaaS. Thus, themulti-tenant architecture of the cloud service platform may varydepending on the particular implementation.

A tenant may correspond to a single user or a group of users of a cloudservice. A “user” in this context may be a human user or a separateapplication or service. For example, a tenant may correspond to anenterprise or a department within an enterprise that subscribes to acloud service on behalf of a group of users that are employed orotherwise associated with an enterprise. As another example, a tenant ofa cloud service, such as a DBaaS, may be an application that accessesthe cloud service to extend the application's functionality.

Tenants may access one or more cloud services using a set ofauthentication credentials. The cloud service platform may attachdifferent permissions to different tenants/authentication credentials topreserve tenant anonymity within the cloud. As an example, an identityand access management (IAM) policy may define what actions are allowedby a tenant, what resources the tenant is allowed to access, and theeffects of a tenant's request to access a resource. If the tenantattempts to perform an unauthorized action and/or attempts to access anunauthorized resource, the request is denied. The policies may bedefined to prevent a tenant from knowing what other tenants areaccessing cloud targets within the multi-tenant cloud platform.

FIG. 1 illustrates a system including a provisioning framework for cloudservices in accordance with one or more embodiments. System 100generally comprises cloud resources 102, cloud service instances 110,data repository 120, and provisioning framework 130. Components ofsystem 100 may be implemented in software and/or hardware. Eachcomponent may be distributed over multiple applications and/or machines.Multiple components may be combined into one application and/or machine.Operations described with respect to one component may instead beperformed by another component.

Cloud resources 102 represent cloud computing infrastructure that may beprovisioned to provide a cloud service (e.g., a PaaS, SaaS, etc.) to oneor more tenants (e.g., tenants 106). Cloud resources 102 may includehardware, software, and/or other cloud services. Cloud resources 102 maybe deployed within a public cloud environment and/or a private cloudenvironment, depending on the particular implementation. As an example,a SaaS application may be installed locally within a private enterprisenetwork that belongs to a tenant. The SaaS application may be connectedto a public cloud environment to receive updates as they are released bythe SaaS provider. Alternatively, the SaaS application may reside on anetwork host within a public cloud. The tenant may access the SaaSapplication using a web browser or some other application.

Cloud resources 102 may comprise agents to track the underlying hardwareand software resources in the cloud environment. For instance, an agentprocess may be executed on a cloud target if the cloud target is avirtual or physical machine, on the same host machine as a cloud targetif the cloud target is a software resource, or remotely from the cloudtarget depending on the particular implementation. An agent process maycollect various parameters associated with a cloud target including, butnot limited to, information about the operations being executed on orfor a cloud target, information about the tenants for which the cloudtarget is available, information about tenants currently assigned to thecloud target, performance metrics (e.g., memory bandwidth, centralprocessing unit (CPU) bandwidth, active sessions, etc.) for the cloudtarget, and topology information that identifies dependencies betweencloud targets.

Cloud service instances 110 represent instances of a PaaS, SaaS, DBaaS,and/or other cloud service that are provided using cloud resources 102.Cloud service instances 110 include service interfaces 111 and bindinginterfaces 112. A service interface represents an interface throughwhich tenants 106 may access respective instances of a cloud service. Inthe context of a PaaS, for instance, a service interface may allow atenant to develop, upload, and manage applications into the cloudenvironment. In the context of a DBaaS, the service interface may allowa tenant to create, upload, and query relational database records. Asanother example, an SaaS interface may allow the user to accessapplication-specific features. Thus, the service interface may vary fromimplementation to implementation. A service interface may include, butis not limited to, a web/service portal, a graphical user interface(GUI), and an application programming interface (API).

Binding interfaces 112 integrate secondary services 104 with cloudservices instances 110. For example, a tenant of a PaaS may wish toconnect the PaaS instance with an SaaS and/or a DBaaS from anotherprovider rather than developing a similar application directly in thecloud environment. The binding interface may establish API endpointsbetween the cloud service instances and external, secondary services. AnAPI endpoint may comprise one or more uniform resource locators (URLs)and/or one or more hypertext transfer protocol (HTTP) commands forcommunicating with a secondary service. In the context of binding aDBaaS, for instance, the API endpoint may include a URL and a set ofHTTP messages for interacting with a DBaaS instance. For example, theHTTP messages may include embedded database commands for storing,retrieving, and modifying data in the DBaaS instance. The API endpoints,URLs, and HTTP commands may vary from one secondary service to another.

Data repository 120 stores data for one or more components ofprovisioning framework 130. Example data that may be stored may include,but is not limited to, service schematics 121, compiles schematics 122,engine metadata 123, and run lists 124. These datasets may be readand/or written by provisioning framework 130 to perform variousprovisioning operations as described further herein.

In one or more embodiments, data repository 120 is any type of storageunit and/or device (e.g., a file system, database, collection of tables,or any other storage mechanism) for storing data. Further, a datarepository 104 may include multiple different storage units and/ordevices. The multiple different storage units and/or devices may or maynot be of the same type or located at the same physical site. Further,data repository 120 may be implemented or may execute on the samecomputing system as provisioning framework 130 Alternatively oradditionally, data repository 120 may be implemented or executed on acomputing system separate from provisioning framework 130. Datarepository 120 may be communicatively coupled to provisioning framework130 via a direct connection or via a network.

Provisioning framework 130 provides logic for defining and provisioningcloud service instances 110. Provisioning framework 130 generallycomprises service schematic editor 131, service schematic compiler 132,provisioning engine 133, binding logic 134, service simulator 135, andcontrol console 136. As previously the components of provisioningframework may be combined into one or distributed across multiple nodes.

Service schematic editor 131 includes logic for creating and editingservice schematics. The editor may provide an interactive interface suchas a GUI and text editor, that allows a user to perform operations fordefining service schematics as described further herein. Serviceschematic editor 132 may save service schematics for one or more cloudservices in data repository 120.

Service schematic compiler 132 compiles service schematics created usingservice schematic editor 131. Service schematic compiler 132 translatesthe service schematics into instructions that may be executed byprovisioning engine 133. In one or more embodiments, service schematiccompiler 132 translates the service schematics into a set of one or moreconfig-lists or other configuration files. The configuration files mayinclude CRUD instructions or any other type of configuration typeinstructions for allocating/deallocating cloud resources 102.

Provisioning engine 133 is configured to execute provisioning operationsbased on compiled service schematics. Example provisioning operationsmay include, but are not limited to (a) creating new instances of acloud service; (b) updating current instances of a cloud service,including scaling up (i.e., allocating additional resources), scalingdown (i.e., deallocating resources), and upgrading/modifying currentlyallocated resources; and (c) deleting instances of a cloud service.Provisioning engine 133 may leverage engine metadata 123 to executeprovisioning operations as described further below.

In one or more embodiments, provisioning engine 133 generates run listsduring provisioning operations. A run list in this context is a dataobject that captures runtime information about the progress of aprovisioning operation. For example, a run list may map a sequence ofsub-operations in a provisioning flow to a set of corresponding statusindicators. Example status indicators may track whether thecorresponding sub-operation completed successfully, failed, is currentlypending, or has not been started. If a sub-operation fails, provisioningengine 133 may retry the operation and/or generate an alarm to notify auser.

Binding logic 134 is configured to generate binding interfaces (e.g.,binding interfaces 112) for instances of a cloud service. In one or moreembodiments, binding logic 134 includes instructions for establishingAPI endpoints with various compatible secondary services. For example,binding logic 134 may include API endpoint templates that define URLsand commands for interacting with other cloud services. Binding logic134 may bind tenant-specific parameters in the API endpoint templates toestablish an interface that binds the secondary service with an instanceof the primary cloud service.

In one or more embodiments, binding logic 134 manages accesscredentials, such as usernames, passwords, digital certificates,authentication tokens, and/or authentication protocols, such as OpenAuthorization (OAuth) for accessing other cloud services. For example, atenant may have previously subscribed to a DBaaS prior to creating a newinstance of a PaaS. Binding logic 134 may acquire the tenant's accesscredentials for the DBaaS (e.g., by prompting the user) and store thecredentials in association with an API endpoint. Binding logic 134 mayfurther manage encryption of messages between cloud service instances110 and secondary services 104. Example encryption protocols include,but are not limited to the RSA encryption and advanced encrypt standard(AES) protocols. Other encryption algorithms may also be used, dependingon the particular binding interface.

Control console 136 provides an interface through which users 108 mayaccess provisioning framework 130. Control console 136 may comprise,without limitation, a GUI, an API, a command-line interface (CLI),and/or some other interface for interacting with users. The users maysubmit commands through control console 136 to perform one or more ofthe operations described herein.

3. Service Schematic Definitions

Service schematics 121 represents blueprints for one or more cloudservices. As previously indicated, a service schematic may define acloud service in a manner that is decoupled from environment-specificparameters, which may vary between different cloud environments. Forexample, cloud resources 102 may comprise a particular set of operatingsystems, storage servers, and/or other cloud resources. Serviceschematics 121 may be ported to a different environment where one ormore of these resources (e.g., host operating systems, storage servers,etc. may be from different providers and configured differently).Service schematics 121 may be used to provision cloud service instances(e.g., PaaS instances, DBaaS instances) in the new environment eventhough the set of cloud resources may not completely overlap.

In one or more embodiments, service schematics 121 define cloud servicesusing a declarative syntax. The declarative syntax that is used maydescribe what resources should be allocated for an instance of a cloudservice but may not describe how to allocate the resources. Exampledeclarative languages include, but are not limited to, the extensiblemarkup language (XML) and JavaScript Object Notation (JSON). By using adeclarative syntax, the determination of how resources are allocated maybe left to provisioning engines executing in different environments.

In one or more embodiments, provisioning framework 130 maintains a setof one or more service schematic templates for guiding users 108 in thecreation of service schematics. For example, a service schematictemplate may comprise a XML or JSON file that is pre-formatted accordingto a particular structure or pattern. In the context of an XML file, theservice schematic may include a set of predefined tags, elements, and/orother markup constructs that users 108 may populate with cloud serviceattributes. Templates in other file formats may similarly include a setof structured constructs that may be populated with cloud serviceattributes using service schematic editor 131.

FIG. 2 illustrates an example set of operations for generating a cloudservice schematic in accordance with one or more embodiments. The set ofoperations include defining a set of global service attributes(Operation 210). A global service attribute is a property or parameterof a service that is independent of and applicable to all versions of aservice. Example global service attributes may include, but are notlimited to (a) a name and/or unique identifier for the cloud service;”(b) an indication of whether the service is managed (e.g., the cloudprovider maintains software resources) or unmanaged (e.g., the tenant isresponsible for maintaining software resources; and (c) high-levelparameter declarations (e.g., declarations of services and/or otherresources that may be integrated into the primary cloud service).

FIG. 3 illustrates example cloud service schematic template 300 inaccordance with one or more embodiments. Service schematic template 300uses XML constructs to define a cloud service. As previously indicated,other formats, such as JSON, may also be used, depending on theparticular implementation.

Service schematic template 300 includes schematic elements 302, 304, and306 for defining global service attributes. Schematic element 302corresponds to the root node in a hierarchical schematic structure andincludes a field, “Service Name”, for assigning a name to the cloudservice. A user may access service schematic template 300 via serviceschematic editor 131 to populate the schematic elements and generate anew service schematic. For example, a user may assign a service name,dependencies, and associations as described further herein.

Schematic element 304 is a construct that captures one or more generalservice attributes. For example, the following declarative statement maybe added, via schematic editor 131, to indicate that the cloud serviceis managed:

<attributes> <managed>true</managed> </attributes>Other attributes may also be added, depending on the particularimplementation. Examples may include, but are not limited to, anindication of a cloud service type (PaaS, DBaaS, etc.), service-levelagreement parameters (e.g., performance targets, constraints, etc.), andany other attributes for defining the cloud service.

Schematic element 306 is a construct for declaring components that areintegrated in the service. The components may be further specified asresource dependencies, as discussed further below. The declarationsection allows a user or compiler to quickly identify the resources thatare associated with the cloud service without having to parse the entireschematic.

Referring again to FIG. 2, the process for generating a serviceschematic further comprises defining one or more service versions(Operation 220). As previously indicated, a cloud service may havemultiple versions. In some cases, a service schematic may initially bedefined with multiple versions. Additionally or alternatively, versionsof a cloud service may be added to a service schematic over time. Thesame service schematic may be used to define multiple versions of acloud service. Each version may be assigned a unique identifier withinthe service schematic. The unique identifier may be an alphanumericvalue (e.g. “Version 1.0”, “Version 1.1”, “Version 1.2”, etc.), aninteger value (e.g., “1”, “2”, “3” etc.), or any other data type.

Schematic elements 306 and 312 of schematic template 300 may be used todefine different versions of a cloud service. Each version element isassociated with a different version identifiers (e.g., “Version 1.1”,“Version 1.2”, etc.). Each version element may further be associatedwith different resource dependencies, run lists and/or associations.

In one or more embodiments, the service schematic defines resourcedependencies for each version of the service (Operation 230). A resourcedependency may be defined as a function of a type of cloud resource onwhich an instance of a respective version of the cloud service depends.For example, a particular version of a cloud service versions may bedependent on a specific type of application or service. However, theparticular version of the cloud service may not be dependent on aparticular type of hardware platform or operating system on which thespecific application or service is executed. In other cases, theparticular version of the cloud service may be dependent on a particulartype of hardware platform and/or operating system. In other cases, thedependencies may vary depending on the version of the cloud service.

Schematic element 308 may be used to define resource dependenciesassociated with the base version of a cloud service (e.g., “Version1.1”) Each dependency is defined by a resource type (e.g., <resourcetype=“Java Cloud Service (JCS)”>, <resource type=“Database Server”>etc.)The resource types may be declared at a high level without any referenceto a particular cloud target. For example, the dependency may notreference a particular host by hostname, internet protocol (IP) address,or other unique identifier. A provisioning engine may select thespecific targets that are allocated at the time of provisioning.

A dependency may be associated with one or more parameters, whichfurther define the scope of the dependency. In one or more embodiments,a parameter adds constraints or conditions on a particular type ofresource. For example, a parameter may constrain a service to aparticular version or platform. In the context of a JCS, for instance,the following parameters may be used to constrain the service to aparticular type of application server (i.e., version 12.1.3 of aWebLogic application server):

<service type = “JCS”> <params> <wls.version>12.1.3</wls.version></params> </service>Other constraints and conditions may also be defined including, but notlimited to, performance-based conditions (e.g., minimum memorybandwidth, minimum CPU performance, etc.) and platform-based constraints(e.g., OS type, hardware constraints, etc.). The available parametersmay vary from resource to resource.

In one or more embodiments, the service schematic further definesassociations for each version of the service (Operation 250). Anassociation in this context corresponds to a service or other resourcethat is compatible with a version of the cloud service. Cloud servicesare not dependent on associated resources. As discussed further below, aprovisioning engine integrates an associated resource with the primarycloud service if available. If the associated resources are notavailable, then a default cloud resource may be used as a fallback or nofurther action may be taken.

In one or more embodiments, service schematics are registered withprovisioning framework 130 (Operation 250). The registration process mayinclude validating, compiling, and/or simulating the service schematicas described further below. Upon registration, provisioning framework130 may store registration data that maps provisioning requests for thecloud service to the corresponding service schematic.

4. Service Schematic Compilation

Service schematic compiler 132 translates service schematics into a setof instructions for performing one or more provisioning operations.Example provisioning operations may include, but are not limited to:

-   -   Allocating resources for new instances of a cloud service, such        as when a new tenant subscribes to the cloud service;    -   Scaling out an instance of a cloud service by adding additional        resources and/or capacity to an existing instance of a cloud        service;    -   Scaling down an instance of a cloud service by deallocating        resources supporting an instance of a cloud service;    -   Upgrading an instance of a cloud service, such as when a tenant        switches to a more recent version of the cloud service;    -   Associating an instance of a cloud service with secondary        services; and    -   Deleting an instance of a cloud service.

In one or more embodiments, service schematic compiler 132 is configuredto compile a service schematic into one or more configuration files(also referred to as a config files or config lists). A configurationfile refers to a data object storing a list of instructions forconfiguring cloud resources 102. For example, a configuration list mayinclude a list of CRUD instructions for creating new resourceconfigurations, reading current configurations, updating resourceconfigurations, and deleting resource configurations.

During compilation, a resource dependency may be mapped to one or moreCRUD instructions. For example, a dependency on a JCS may be mapped toinstructions for configuring an application server, a routing service,and/or one or more other resources that support the JCS. Theconfiguration instructions may vary depending on the resourcedependencies, associations and/or other elements of a cloud serviceschematic.

FIG. 4 illustrates an example set of operations for compiling a cloudservice schematic in accordance with one or more embodiments. Theprocess includes reading a service schematic to compile from datarepository 120 (Operation 410). The compilation process may be triggeredupon request by a user. For example, a user may submit a request that aservice schematic be compiled from a service schematic editor. Inresponse, the service schematic compiler may be invoked to compile theservice schematic that the user is currently viewing (e.g., via a GUI).In other cases, the compiler may be invoked automatically in response toa triggering event, such as detecting that a service schematic has beenupdated or that resources in a cloud environment have changed.

During the compilation process, service schematic compiler 132 parsesthe service schematic to identify resource dependencies and associationsdefined therein (Operation 420). In the context of an XML schematic, forexample, service schematic compiler 132 may comprise an XML parser foridentifying schematic elements (e.g., schematic elements 308 and 310),corresponding to dependency and association definitions. Serviceschematic compiler 132 may parse schematic element 308 to identify theresource dependencies and associated parameters, if any. Serviceschematic compiler 132 may parse schematic element 310 to identify ifthe cloud resource is compatible with any secondary service.

Based on the dependencies and/or associations identified from theservice schematic, service schematic compiler 132 generates a set of oneor more configuration files for provisioning cloud resources 102(Operation 430). As previously indicated, the configuration files mayinclude CRUD instructions that are executable by provisioning engine 133to allocate/deallocate cloud resources.

In one or more embodiments, schematic compiler 132 generates separateconfiguration files for different types of configuration operations. Forexample, service schematic compiler 132 may generate one configurationfile for provisioning a new instance of a cloud service, another forscaling out an instance of the cloud service, and another forassociating secondary services.

Additionally or alternatively, different configuration files may begenerated for different versions of a cloud service. For example,schematic compiler 132 may create a set of configuration files for“Versions 1.1” corresponding to schematic element 306 based on resourcesdependencies defined by schematic element 308 and associations definedby schematic element 310. Schematic compiler 132 may create a separateset of configuration files for “Version 1.2” corresponding to schematicelement 312 based on resource dependencies and associations definedtherein.

In one or more embodiments, schematic compiler 132 may perform one ormore optimizations when mapping the service schematic to a set ofconfiguration instructions. As one example, a configuration file may beexecutable to configure a virtual machine. This allows the configurationfile to be ported to any environment in which the virtual machine isrunning. Further, during deletion of an instance of a cloud service, theentire virtual machine may be deleted rather than deleting individualresources.

In one or more embodiments, service schematic compiler 132 is configuredto optimize the order of the configuration instructions. For example,service schematic compiler 132 may determine whether there are redundantor otherwise inefficient configuration instructions. If so, theinstructions may be modified and/or reordered. For instance, an updateoperation of a resource may cause a subsequent configuration operationon the resource to be unsuccessful. To prevent an error, serviceschematic compiler 132 may push the update operation after theconfiguration operation in the portioning flow.

In one or more embodiments, service schematic compiler 132 stores theoptimized configuration files in data repository 120 (Operation 450).The service schematic and registration data may be mapped to theoptimized configuration file, which corresponds to a compiles version ofthe configuration schematic. Provisioning engine 133 may access theoptimized configuration file to execute provisioning operation asdescribed further below.

FIG. 5 illustrates an example output of a cloud service schematiccompiler in accordance with one or more embodiments. Service schematic132 receives, as input, service schematic 510, which defines a set ofresource dependencies and associations. In response, service schematiccompiler 132 generates a set of configuration lists. The configurationlists include provisioning config list 520 for provisioning newinstances of the cloud service, upgrade config list 530 for upgradinginstances of the cloud service, scaleout config list 540 for augmentingthe performance/capacity of the cloud service, and association configlist 550 for integrating secondary services.

5. Version Aggregation

As previously described, a service schematic may define a derivedversion of a cloud service as a function of one or more other versionsof a cloud service, including a base version. For example, version 1.2,defined by schematic element 312, may inherit the dependencies andassociations of version 1.1, which acts as the base version. In otherwords, the dependencies captured by schematic element 308 do not need tobe redefined in version 1.2. Rather, these dependencies areautomatically applied the version 1.2, excepting any changes made by thederived version.

A derived version of a cloud service may make changes to another versionof a cloud resource by (a) adding a resource dependency and/orassociation; (b) modifying a resource dependency and/or association;and/or (c) removing a resource dependency and/or association. Forexample, version 1.1 of a service may include a dependency on a routingmanagement service with a configuration type reference “RTaaS-RoutingManagement”. Version 1.2 may change this dependency as follows:

<definition version=“1.2” > <run-list> <config action=“CREATE”config-type-ref=“LBaaS-Routing Management”/> <config action=“DELETE”config-type-ref=“RTaaS-Routing Management”/> </run-list> </definition>In the above definition, version 1.2 replaces “RTaaS-Routing Management”with “LBaaS-Routing Management”. The replacement is defined using a CRUDsyntax, although other syntaxes may also be used, depending on theparticular implementation. The CREATE configuration action adds the newdependency to version 1.2, and the DELETE configuration action removes adependency defined in version 1.1.

A service schematic may define multiple derived versions of a cloudservice. For example, version 1.3 may be defined as a function ofversion 1.2 and version 1.1. In this case, version 1.3 inherits theresource dependencies and associations of base version 1.1 as modifiedby version 1.2. Version 1.3 may make further modifications by adding,modifying, and/or removing dependencies/associations.

Base versions and derived versions of a cloud service may be compileddifferently. A base version of the cloud service defines a base set ofdependencies and/or associations (also referred to herein as “baseproperties”). The base version does not inherit dependencies andassociations from other cloud service versions defined in the serviceschematic. During compilation, service schematic compiler 132 maygenerate the configuration files based on the base properties withoutincorporating any changes made by derived versions of a service. Inother words, provisioning operations, including operations forprovisioning new instances, scaling out, etc. include instructions forallocating resources based on the base set of resource dependencies andassociations. The instructions are not computed as a function of othercloud service version defined in the service schematic.

For derived versions of a cloud service, service schematic compiler 132may aggregate resource dependencies and/or associations across multipleversions of the cloud service. In one or more embodiments, aggregatingresource dependencies comprises merging configuration actions across thecurrent version of a cloud service and all previous versions of thecloud service. For example, if version 1.1 creates a new resourcedependency, version 1.2 updates the dependency, and version 1.3 does notdefine a configuration action with respect to the dependency, thenversion 1.3 inherits the updated dependency as defined in version 1.2.On the other hand, if version 1.3 deletes the dependency, then theresource dependency is not included or may be removed duringprovisioning operations.

In one or more embodiments, service schematic compiler 132 is configuredto detect and merge configurations that collide. A collision occurs whena configuration action in a current version of a cloud service isdirected to a dependency or association defined in a previously definedversion of the cloud service. TABLE 1 below illustrates the exampleresult of merging colliding configuration actions.

TABLE 1 RESULTS OF MERGING CONFIGURATION ACTIONS Action on PreviousAction on Current Version Version Merged/Aggregate Result CREATE CREATEError is raised to alert user of resource duplication CREATE UPDATEProvisioning new instances will CREATE the updated version of theresource; upgrade operations will UPDATE the older version to the newversion. CREATE DELETE No action is taken when provisioning newinstances; a DELETE may be performed during upgrade operations DELETECREATE A configuration is created per the current version even though aprevious version deleted the resource DELETE READ/UPDATE/ An error isgenerated to notify the DELETE user that the resource does not exist

6. Schematic-Based Provisioning

In one or more embodiments, provisioning engine 133 performsprovisioning operations by executing compiled service schematics.Example types of provisioning operations may include, but are notlimited to generating new instances of a cloud service, upgradinginstances of a cloud service to a new version, expanding thecapacity/resources allocated to an instance of a cloud service, scalingdown/reducing the resources allocated to an instance of a cloud service,and deleting an instance of a cloud services. Each type of provisioningoperations may generally comprise allocating, upgrading, and/ordeallocating resources for an instance of a cloud service.

In one or more embodiments, provisioning engine 133allocates/deallocates cloud resources for a tenant using virtualmachines (VMs). During a provisioning operation, provisioning engine 133may execute a configuration file generated by service schematic compiler132 to configure a VM for a tenant. For example, provisioning engine 133may read a CREATE instruction from a configuration file to allocate adatabase resource for an instance of a cloud system. Based on the CREATEinstruction, provisioning engine 133 may reserve an instance of thedatabase resource for the VM. Provisioning engine. Additionally oralternatively, provisioning engine 133 may reserve other resources(e.g., CPU resources, network resources, etc.) for the VM.

In one or more embodiments, provisioning engine 133allocates/deallocates cloud resources for a tenant based on a servicetopology. A service topology in this context defines dependenciesbetween different cloud resources. For example, a cloud resource, suchas an instance of an SaaS application, may be dependent on a databaseservice to manage database transactions. The cloud resource may furtherbe dependent on a load balancer to route requests received over anetwork. Topology information may be captured by a service schematic andincluded in the compiled configuration files. During provisioning,provisioning engine 133 may connect interdependent cloud resources basedon the configuration files. In the above example, for instance,provisioning engine 133 may reserve an instance of the SaaS applicationand the database service to a VM such that database requests from theapplication instance are routed to the instance of the database service.

FIG. 6 illustrates an example set of operations for performing cloudprovisioning in accordance with one or more embodiments. The process maybe triggered by receiving a request to perform a provisioning operation.For example, a cloud administrator, tenant, application, or other usermay submit a request to create, upgrade, scale out, scale down, ordelete an instance of the cloud service.

Responsive to receiving a request, provisioning framework 130 identifiesa service schematic for the requested provisioning operation (Operation610). For example, provisioning framework 130 may search theregistration data using the cloud service name and/or any other uniqueidentifier of the cloud service. The registration data may be mapped toa corresponding service schematic and a set of configuration files ifthe service schematic has been compiled.

In one or more embodiments, provisioning framework 130 determineswhether the identified service schematic has been compiled (Operation620). If the service schematic has not been compiled or has been updatedsince it was last compiled, then service schematic compiler 132 compiles(or recompiles) the service schematic (Operation 630).

Provisioning engine 133 next executes the code of the compiled serviceschematic for the requested provisioning operation (Operation 640). Aspreviously described, service schematic compiler 132 may generatemultiple configuration files for a single service schematic. If a userrequests a new instance, provisioning engine 133 may access acorresponding configuration file to allocate resources for a newinstance of the cloud service. If a user requests another provisioningoperation (e.g., an upgrade, scale out, etc.), then provisioning engine133 may access and execute the instruction included in anotherconfiguration that corresponds to the requested operation. Thus,provisioning engine 133 may select the configuration file/code toexecute based on the type of provisioning operation requested.

Provisioning engine 133 may also execute code based on the version ofthe service that is the subject of the request. For example, a user maysubmit a request to upgrade an instance of a cloud service to the latestversion. In response, provision engine 133 may select the upgradeconfiguration file for the latest version. As previously described, theconfiguration file may aggregate resource dependencies and associationsacross multiple versions of a cloud service.

In one or more embodiments, provisioning engine 133 performsprovisioning operations based in part on engine metadata 123. Enginemetadata 123 may include, without limitation, API framework providerinformation, config-type definitions, and cloud resource interfacedefinitions. For example, engine metadata 123 may use the followingtemplate to capture details to establish an endpoint with a resource:

<definition type=“RESOURCE_TYPE” > <url >${RESOURCE_URL}</url><user>${RESOURCE_USER}</user> <pwd>${RESOURCE_PASSWORD}</pwd><description>Provider for resource endpoints</description> </definition>The details include a URL, a username, and a password to access theresource. During provisioning operations that access resources of type“RESOURCE_TYPE”, provisioning engine 133 may access the resourcedefinition in the engine metadata. Provisioning engine 133 may configurethe resource using the URL, username, and password. The resourcetemplate above includes XML elements for defining resource parameters.However, any other metadata syntax may be used, including, withoutlimitation, JSON. Additionally or alternatively, the definition mayinclude additional fields (e.g., fields defining encryption, API, and/ormessaging protocols) and/or omit one or more fields depending on theparticular implementation.

In one or more embodiments, provisioning engine 133 generates a run listthat tracks the status of a requested provisioning operation (Operation650). For example, a run list may comprise a sequence of configurationactions, such as the CRUD instructions included a configuration file.During the provisioning operation, provisioning engine 133 executes thesequence of configuration actions to configure cloud resources 102 foran instance of a cloud service. The run list may map each configurationaction to a corresponding status identifier. Example status identifiermay include, but are not limited to, pending, currently in progress,success, and failure. A run list may be persistently stored and/ordisplayed to a user to track the overall progress of a provisioningoperation.

In one or more embodiments, provisioning engine 133 is configured toreattempt a configuration action if the configuration action has failed.For example, a provisioning engine 133 may be unable to allocate aresource to a tenant due to resource overload or some other conflict.The provisioning engine 133 may wait for a threshold period of time andreattempt the configuration action. If provisioning engine 133 is unableto successfully complete the configuration action after a thresholdnumber of tries or period of time, a notification may be sent to anadministrator and/or the run list may be updated accordingly.

In one or more embodiments, a provisioning operation may be paused andresumed at a later time. When a provisioning operation is paused, therun list may be persistently stored in the current state at the time theoperation is paused. In response to a request to resume the provisioningoperation, provisioning engine 133 may access the run list frompersistent storage to determine where the operation was paused.Provisioning engine 133 may then resume the operation by executing thenext configuration action from where the operation was paused.

FIG. 7 illustrates an example implementation of a provisioning engine133 in accordance with one or more embodiments. Provisioning 133 readsprovisioning config list 710 to provision a new instance of a cloudservice. Provisioning engine 133 executes the instructions in the configlist to allocate target resources, such as target resources 730 a-c, forthe cloud service instance. Provisioning engine 133 further generatesrun list 720, which tracks the status of each configuration action inconfig list 710. In the example illustrated, the first two configurationactions completed successfully, and the third action is currentlyrunning.

7. Secondary Service Binding

In one or more embodiments, binding logic 134 is configured to integratesecondary services with a primary service. When a service schematicdefines an association with a secondary service, binding logic 134 maybind the service to an instance of the primary service. Once the bindingoccurs, the instance of the primary service may access the methodsand/or other functions of the secondary service.

FIG. 8 illustrates an example set of operations for binding secondaryservices to a primary cloud service in accordance with one or moreembodiments. The process includes identifying a compatible secondaryservice from a service schematic for a primary service (Operation 810).For example, service schematic compiler 132 may parse a serviceschematic to identify element 310, which defines one or moreassociations with secondary services. Element 310 may define a uniqueidentifier for the secondary service, such as a service name and/or aURL where the service may be accessed.

During a binding operation, binding logic 134 may determine whether thesecondary service is available (Operation 820). In one or moreembodiments, binding logic 134 determines whether the secondary serviceis available based on whether the tenant of the primary cloud servicehas an account and/or credentials to access the secondary service. Forexample, binding logic 134 may determine whether or not the tenant hassubscribed to the secondary service by prompting the tenant through aGUI or other interface. If the tenant has subscribed, binding logic 134may prompt the tenant for a username, password, and/or otherauthentication credentials for accessing the secondary service. If thetenant cannot be authenticated with the second service, then bindinglogic 134 may determine that the secondary service is not available.

If the service is available, then binding logic 134 generates a set ofdeployment configuration data for accessing the secondary service(Operation 830). In one or more embodiments, the deploymentconfiguration data binds a component of the primary service with thesecondary service. Once configured, the component of the primary servicemay invoke or otherwise access methods in the second service. Forexample, an application instance of the primary service may beconfigured to invoke methods of a secondary DBaaS and/or SaaS.

In one or more embodiments, the deployment configuration dataestablishes an API endpoint and/or other interface to access thesecondary service. Binding logic 134 may establish the API endpointand/or other interface in the primary service by binding a serviceobject, an authentication token, access credentials, and/or other dataassociated with a secondary data with deployment configuration code. Forexample, binding logic 134 may update the deployment configuration codewith tenant-specific parameters and/or objects to establish a connectionbetween a primary service component and a secondary service instance.

If the secondary service is not available, then binding logic 134determines whether to allocate a default resource (Operation 840). Insome cases, a default component may be specified by the serviceschematic. For example, the service schematic may specify a defaultstorage component if a secondary storage service is not available. Inother cases, binding logic 134 may automatically select the defaultstorage component even if not defined in the service schematic.Alternatively, binding logic 134 may proceed performing any defaultdeployment configurations if the secondary service is not available.

In one or more embodiments, binding logic 134 generates deploymentconfiguration data for a default resource if the secondary service isnot available (Operation 850). For example, if the tenant has notsubscribed to one of secondary services 104 that are compatible with acorresponding cloud service instance, then binding logic 134 maygenerate a set of configuration actions for allocating one or more ofcloud resources 102 instead. In some cases, the allocated resources mayperform at least a subset of the functions of the compatible secondaryservice. For example, if a secondary DBaaS instance is not available,then a default database server may be used instead. The default databaseserver may provide basic database storage functions but may not have thesame analytical capacity as the secondary DBaaS.

The process further includes determining whether there are othersecondary services that are compatible with the primary service(Operation 860). If so, then the process returns to operation 820 andrepeats for the next compatible secondary service.

In one or more embodiments, provisioning engine 133 provisions a set ofcomponents based on the deployment configuration data generated for eachcompatible secondary service (Operation 870). As previously indicated,the deployment configuration data may comprise one or more configurationactions to establish an API endpoint or other interface to connect oneor more of cloud resources 102 with one or more instances of secondaryservices 104. Provisioning engine 133 may execute the configurationinstructions to establish a connection between the primary serviceinstance and the one or more secondary service instances. For example,the components of the primary service may use a tenant's accesscredentials and/or other authentication tokens to invoke functionsprovided by the secondary service.

8. Service Simulation

In one or more embodiments, service simulator 135 is configured tosimulate cloud service instances defined through a cloud serviceschematic. Service simulator 135 allows new and updated cloud serviceschematic designs to be validated before the cloud service is released.

In one or more embodiments, service simulator 135 may simulate a newinstance of a cloud service by compiling the service schematic andprovisioning resources from a test environment. During the simulation,service simulator 135 may track data to help validate the design of thecloud service. Example data that may be tracked may include, but is notlimited to, (a) topology data that identifies dependencies betweendifferent cloud resources and (b) performance data that tracksperformance for individual and groups of resources (e.g., CPUperformance, memory bandwidth, etc.)

In one or more embodiments, service simulator 135 may generate atopology diagram for a simulated cloud service. The topology diagram mayshow dependencies between different cloud resources and how theresources connect. For example, FIG. 9 illustrates an example servicetopology with a secondary service binding to a primary cloud service inaccordance with one or more embodiments. The service topology includesPaaS Instance 900, corresponding to a primary service. PaaS Instance 900generally comprises routing service 904, web server instances 906 a-iand application server instances 908 a-j. Routing service 904 routesHTTP requests received from clients 902 a-n to web server instances 906a-i. Web server instances 906 a-i are configured to process HTTPrequests and call functions provided by application server instances908-j.

The service topology further includes DBaaS instance 910, whichcorresponds to a secondary service that is bound to PaaS instance 900.Application servicer instances 908 a-j are configured to connect withDBaaS instances 910 to access database 912 a-k and compatible functionsprovided through the secondary service. For example, application serverinstances 908 a-j may invoke functions of DBaaS instance to store,retrieve, and run analytical queries on the data stored in databases 912a-k.

The service topology depicted in FIG. 9 is an example of topologydiagram that may be generated and displayed by service simulator 135.The topology of a cloud service may vary from service schematic toservice schematic.

9. Hardware Overview

According to one embodiment, the techniques described herein areimplemented by one or more special-purpose computing devices. Thespecial-purpose computing devices may be hard-wired to perform thetechniques, or may include digital electronic devices such as one ormore application-specific integrated circuits (ASICs) or fieldprogrammable gate arrays (FPGAs) that are persistently programmed toperform the techniques, or may include one or more general purposehardware processors programmed to perform the techniques pursuant toprogram instructions in firmware, memory, other storage, or acombination. Such special-purpose computing devices may also combinecustom hard-wired logic, ASICs, or FPGAs with custom programming toaccomplish the techniques. The special-purpose computing devices may bedesktop computer systems, portable computer systems, handheld devices,networking devices or any other device that incorporates hard-wiredand/or program logic to implement the techniques.

For example, FIG. 10 is a block diagram that illustrates computer system1000 upon which one or more embodiments may be implemented. Computersystem 1000 includes bus 1002 or other communication mechanism forcommunicating information, and hardware processor 1004 coupled with bus1002 for processing information. Hardware processor 1004 may be, forexample, a general purpose microprocessor.

Computer system 1000 also includes main memory 1006, such as a randomaccess memory (RAM) or other dynamic storage device, coupled to bus 1002for storing information and instructions to be executed by processor1004. Main memory 1006 also may be used for storing temporary variablesor other intermediate information during execution of instructions to beexecuted by processor 1004. Such instructions, when stored innon-transitory storage media accessible to processor 1004, rendercomputer system 1000 into a special-purpose machine that is customizedto perform the operations specified in the instructions.

Computer system 1000 further includes read only memory (ROM) 1008 orother static storage device coupled to bus 1002 for storing staticinformation and instructions for processor 1004. Storage device 1010,such as a magnetic disk or optical disk, is provided and coupled to bus1002 for storing information and instructions.

Computer system 1000 may be coupled via bus 1002 to display 1012, suchas a cathode ray tube (CRT), liquid crystal display (LCD), orlight-emitting diode (LED), for displaying information to a computeruser. Input device 1014, which may include physical and/or touchscreenbased alphanumeric keys, is coupled to bus 1002 for communicatinginformation and command selections to processor 1004. Another type ofuser input device is cursor control 1016, such as a mouse, a trackball,or cursor direction keys for communicating direction information andcommand selections to processor 1004 and for controlling cursor movementon display 1012. This input device typically has two degrees of freedomin two axes, a first axis (e.g., x) and a second axis (e.g., y), thatallows the device to specify positions in a plane.

Computer system 1000 may implement the techniques described herein usingcustomized hard-wired logic, one or more ASICs or FPGAs, firmware and/orprogram logic which in combination with the computer system causes orprograms computer system 1000 to be a special-purpose machine. Accordingto one embodiment, the techniques herein are performed by computersystem 1000 in response to processor 1004 executing one or moresequences of one or more instructions contained in main memory 1006.Such instructions may be read into main memory 1006 from another storagemedium, such as storage device 1010. Execution of the sequences ofinstructions contained in main memory 1006 causes processor 1004 toperform the process steps described herein. In alternative embodiments,hard-wired circuitry may be used in place of or in combination withsoftware instructions.

The term “storage media” as used herein refers to any non-transitorymedia that store data and/or instructions that cause a machine tooperation in a specific fashion. Such storage media may comprisenon-volatile media and/or volatile media. Non-volatile media includes,for example, optical or magnetic disks, such as storage device 1010.Volatile media includes dynamic memory, such as main memory 1006. Commonforms of storage media include, for example, a floppy disk, a flexibledisk, hard disk, solid state drive, magnetic tape, or any other magneticdata storage medium, a CD-ROM, any other optical data storage medium,any physical medium with patterns of holes, a RAM, a PROM, and EPROM, aFLASH-EPROM, NVRAM, any other memory chip or cartridge.

Storage media is distinct from but may be used in conjunction withtransmission media. Transmission media participates in transferringinformation between storage media. For example, transmission mediaincludes coaxial cables, copper wire and fiber optics, including thewires that comprise bus 1002. Transmission media can also take the formof acoustic or light waves, such as those generated during radio-waveand infra-red data communications.

Various forms of media may be involved in carrying one or more sequencesof one or more instructions to processor 1004 for execution. Forexample, the instructions may initially be carried on a magnetic disk orsolid state drive of a remote computer. The remote computer can load theinstructions into its dynamic memory and send the instructions over atelephone line using a modem. A modem local to computer system 1000 canreceive the data on the telephone line and use an infra-red transmitterto convert the data to an infra-red signal. An infra-red detector canreceive the data carried in the infra-red signal and appropriatecircuitry can place the data on bus 1002. Bus 1002 carries the data tomain memory 1006, from which processor 1004 retrieves and executes theinstructions. The instructions received by main memory 1006 mayoptionally be stored on storage device 1010 either before or afterexecution by processor 1004.

Computer system 1000 also includes a communication interface 1018coupled to bus 1002. Communication interface 1018 provides a two-waydata communication coupling to a network link 1020 that is connected tolocal network 1022. For example, communication interface 1018 may be anintegrated services digital network (ISDN) card, cable modem, satellitemodem, or a modem to provide a data communication connection to acorresponding type of telephone line. As another example, communicationinterface 1018 may be a local area network (LAN) card to provide a datacommunication connection to a compatible LAN. Wireless links may also beimplemented. In any such implementation, communication interface 1018sends and receives electrical, electromagnetic or optical signals thatcarry digital data streams representing various types of information.

Network link 1020 typically provides data communication through one ormore networks to other data devices. For example, network link 1020 mayprovide a connection through local network 1022 to host computer 1024 orto data equipment operated by Internet Service Provider (ISP) 1026. ISP1026 in turn provides data communication services through the world widepacket data communication network now commonly referred to as the“Internet” 1028. Local network 1022 and Internet 1028 both useelectrical, electromagnetic or optical signals that carry digital datastreams. The signals through the various networks and the signals onnetwork link 1020 and through communication interface 1018, which carrythe digital data to and from computer system 1000, are example forms oftransmission media.

Computer system 1000 can send messages and receive data, includingprogram code, through the network(s), network link 1020 andcommunication interface 1018. In the Internet example, server 1030 mighttransmit a requested code for an application program through Internet1028, ISP 1026, local network 1022 and communication interface 1018.

The received code may be executed by processor 1004 as it is received,and/or stored in storage device 1010, or other non-volatile storage forlater execution.

9. Miscellaneous; Extensions

Embodiments are directed to a system with one or more devices thatinclude a hardware processor and that are configured to perform any ofthe operations described herein and/or recited in any of the claimsbelow.

In an embodiment, a non-transitory computer readable storage mediumcomprises instructions which, when executed by one or more hardwareprocessors, causes performance of any of the operations described hereinand/or recited in any of the claims.

Any combination of the features and functionalities described herein maybe used in accordance with one or more embodiments. In the foregoingspecification, embodiments have been described with reference tonumerous specific details that may vary from implementation toimplementation. The specification and drawings are, accordingly, to beregarded in an illustrative rather than a restrictive sense. The soleand exclusive indicator of the scope of the invention, and what isintended by the applicants to be the scope of the invention, is theliteral and equivalent scope of the set of claims that issue from thisapplication, in the specific form in which such claims issue, includingany subsequent correction.

What is claimed is:
 1. One or more non-transitory computer-readablemedia storing instructions which, when executed by one or more hardwareprocessors, cause: receiving, by a compiler, a service schematic for acloud service; responsive to receiving the service schematic for thecloud service, translating, by the compiler, the service schematic forthe cloud service into a plurality of configuration files including atleast a first configuration file storing a first set of instructions forperforming a first type of provisioning operation and a secondconfiguration file storing a second set of instructions for performing asecond type of provisioning operation; receiving a request to perform aparticular provisioning operation for the cloud service; responsive toreceiving the request, determining that the particular provisioningoperation is the first type of provisioning operation; and executing thefirst set of instructions, stored in the first configuration file, forperforming the first type of provisioning operation.
 2. The one or morenon-transitory computer-readable media of claim 1, wherein the firsttype of provisioning operation is one of an operation for allocatingresources for a new instance of the cloud service, an operation forscaling out an instance of the cloud service, an operation for scalingdown an instance of the cloud service, an operation for upgrading aninstance of the cloud service, or an operation for deleting an instanceof the cloud service; and wherein the second type of provisioningoperation is one of an operation for allocating resources for a newinstance of a cloud service, an operation for scaling out an instance ofthe cloud service, an operation for scaling down an instance of thecloud service, an operation for upgrading an instance of the cloudservice, or an operation for deleting an instance of the cloud service.3. The one or more non-transitory computer-readable media of claim 1,wherein the first type of provisioning operation is for a first versionof the cloud service defined in the service schematic and the secondtype of provisioning operation is for a second version of the cloudservice defined in the service schematic.
 4. The one or morenon-transitory computer-readable media of claim 1, wherein the first setof instructions and the second set of instructions are executable by avirtual machine.
 5. The one or more non-transitory computer-readablemedia of claim 4, wherein the first set of instructions causes thevirtual machine to allocate a set of cloud resources for a tenant. 6.The one or more non-transitory computer-readable media of claim 4,wherein the first type of provisioning operation is a delete operationand wherein executing the first set of instructions includes deletingthe virtual machine.
 7. The one or more non-transitory computer-readablemedia of claim 1, wherein the instructions further cause reordering, bythe compiler, instructions in the plurality of configuration files tooptimize the plurality of configuration files.
 8. The one or morenon-transitory computer-readable media of claim 1, wherein the serviceschematic defines a set of resource dependencies and associations andwherein translating, by the compiler, the service schematic for thecloud service is performed based on the set of resource dependencies andassociations.
 9. The one or more non-transitory computer-readable mediaof claim 8, wherein the service schematic defines multiple versions ofthe cloud service and wherein the compiler translates the serviceschematic based on inheritance of at least resource dependency in theset of resource dependencies of a first version of the cloud servicefrom a second version of the cloud service.
 10. The one or morenon-transitory computer-readable media of claim 1, wherein the serviceschematic identifies a set of one or more secondary services that arecompatible with the cloud service; and wherein executing the first setof instructions includes executing instructions for binding the at leastone secondary service in the set of one or more secondary services to aninstance of the cloud service.
 11. The one or more non-transitorycomputer-readable media of claim 1, wherein the cloud service is one ofa platform-as-a-service, a database-as-a-service, or asoftware-as-a-service.
 12. The one or more non-transitorycomputer-readable media of claim 1, wherein executing the first set ofinstructions, stored in the first configuration file, for performing thefirst type of provisioning operation comprises allocating resources froma test environment to simulate a new instance of the cloud service. 13.The one or more non-transitory computer-readable media of claim 12,wherein the instructions further cause tracking a set of topology dataand performance data within the test environment; and validating theservice schematic based on said tracking of the set of topology data andthe performance data.
 14. The one or more non-transitorycomputer-readable media of claim 11, wherein the instructions furthercause generating and presenting a topology diagram that identifiesdependencies between different cloud resources and how the cloudresources connect.
 15. The one or more non-transitory computer-readablemedia of claim 11, wherein executing the first set of instructions,stored in the first configuration file, for performing the first type ofprovisioning operation comprises deallocating a set of one or moreresources.
 16. The one or more non-transitory computer-readable media ofclaim 11, wherein the instructions further cause generating a run listthat tracks runtime information while executing the first set ofinstructions; and wherein the runtime information maps sub-operations ofthe particular provisioning operation to corresponding statusindicators.
 17. The one or more non-transitory computer-readable mediaof claim 16, wherein the instructions further cause triggering an alarmbased on the runtime information if a sub-operation has failed more thana threshold number of times.
 18. The one or more non-transitorycomputer-readable media of claim 11, wherein the first set ofinstructions stored in the first configuration file is for configuringnew instances of the cloud service; wherein the second set ofinstructions stored the second configuration file is for scaling outinstances of the cloud service; and wherein the plurality ofconfiguration files further includes a third configuration file fordeleting instances of the cloud service, an fourth configuration filefor upgrading instances of the cloud service, and a fifth configurationfile for integrating secondary services with the cloud service.
 19. Asystem comprising: one or more hardware processors; one or morenon-transitory computer-readable media storing code, which, whenexecuted by the one or more hardware processors cause operationscomprising: receiving, by a compiler, a service schematic for a cloudservice; responsive to receiving the service schematic for the cloudservice, translating, by the compiler, the service schematic for thecloud service into a plurality of configuration files including at leasta first configuration file storing a first set of instructions forperforming a first type of provisioning operation and a secondconfiguration file storing a second set of instructions for performing asecond type of provisioning operation; receiving a request to perform aparticular provisioning operation for the cloud service; responsive toreceiving the request, determining that the particular provisioningoperation is the first type of provisioning operation; and executing thefirst set of instructions, stored in the first configuration file, forperforming the first type of provisioning operation.
 20. A methodcomprising receiving, by a compiler, a service schematic for a cloudservice; responsive to receiving the service schematic for the cloudservice, translating, by the compiler, the service schematic for thecloud service into a plurality of configuration files including at leasta first configuration file storing a first set of instructions forperforming a first type of provisioning operation and a secondconfiguration file storing a second set of instructions for performing asecond type of provisioning operation; receiving a request to perform aparticular provisioning operation for the cloud service; responsive toreceiving the request, determining that the particular provisioningoperation is the first type of provisioning operation; and executing thefirst set of instructions, stored in the first configuration file, forperforming the first type of provisioning operation.